<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/angular.min.js"></script>
    <script src="../js/angular-route.min.js"></script>
</head>
<body ng-app="myapp">
    <div>
        <h1>HEAD</h1>
        <ul>
            <li><a href="#/">首页</a></li>
            <li><a href="#/users">用户管理</a></li>
            <li><a href="#/products">商品管理</a></li>
        </ul>
    </div>
    <div ng-view></div>
    <div>
        <h1>ROOT</h1>
    </div>
</body>
<script type="text/javascript">
    var myapp = angular.module("myapp",[]);
    myapp.config(["$routeProvider",function ($routeProvider) {
        $routeProvider.when("/",{
            templateUrl:'5_1.html'
        })
    }])
</script>
</html>